﻿function initThreeBanners() {
    var trigger = null;
    $(".threeBannerLinks").hide();

    $(".threeBannerBg").hover(function () {
        var slideLinks = $(this).find(".threeBannerLinks");
        trigger = setTimeout(function () {
            slideLinks.slideDown();
        }, 500);
    }, function () {
        $(".threeBannerLinks").slideUp();
        clearTimeout(trigger);
    });
}

function initExhibitorsMembers() {
    $("#ExhibitorsCert").change(function () {
        var insertNum = parseInt($(this).val());
        var insertContent = "<div class=\"ExhibitorsCert\">" +
                                "<ul>" +
                                    "<li class=\"formProp\"><span>*</span>姓名：</li>" +
                                    "<li class=\"formLongLine\"><input type=\"text\" class=\"inputNormal\" value=\"\" /></li>" +
                                    "<li class=\"clear\"></li>" +
                                "</ul>" +
                                "<ul>" +
                                    "<li class=\"formProp\"><span>*</span>职务：</li>" +
                                    "<li class=\"formLongLine\"><input type=\"text\" class=\"inputNormal\" value=\"\" /></li>" +
                                    "<li class=\"clear\"></li>" +
                                "</ul>" +
                                "<ul>" +
                                    "<li class=\"formProp\"><span>*</span>上传照片：</li>" +
                                    "<li class=\"formLongLine\"><input type=\"file\" size=\"30\" id=\"filePic\" name=\"filePic\" /></li>" +
                                    "<li class=\"clear\"></li>" +
                                "</ul>" +
                            "</div>";

        $(".ExhibitorsCert").remove();
        for (i = 1; i <= insertNum; i++) {
            $(this).parent().parent().after(insertContent);
        }
    });
}